from django.shortcuts import render
from rest_framework.generics import ListAPIView
from .models import *
from .serializer import *
from rest_framework.views import APIView
from rest_framework.response import Response
# Create your views here.
class CarouseLview(ListAPIView):
    queryset = Carousel.objects.all()
    serializer_class =Carouse

class GoodsLocd(ListAPIView):
    queryset = Category.objects.all()
    serializer_class =Goodslist

class Zuoyi(ListAPIView):
    queryset = HotGiids.objects.all()
    serializer_class =Chaoxcv

class Newgoods(ListAPIView):
    queryset = Goods.objects.all()
    serializer_class = Nowall

class Apixuo(ListAPIView):
    queryset = Recommends.objects.all()
    serializer_class = Reopsep


